package com.lcxw.hxzbadmin.service.dbmanagerservice;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbadmin.dao.dbmanagermapper.DbManagerMapper;

@Component
public class DbManagerService {

    @Resource
    DbManagerMapper dbManagerMapper;

    public List<String> selectAllTables(){
        return dbManagerMapper.selectAllTables();
    }

    public Map<String,Integer> selectTableSize(String tableName){
        return dbManagerMapper.selectTableSize(tableName);
    }

    public int optimizeTable(String tableName){
        return dbManagerMapper.optimizeTable(tableName);
    }
}
